﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Bank.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.ControlPanel.Bank" %>

<%@ Register TagPrefix="uc1" Src="../UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" %>
<%@ Register TagPrefix="cc1" Namespace="WinnerCMS.WebControls" Assembly="WinnerCMS.WebControls" %>
<!doctype html>
<html>
<head id="Head1" runat="server">
    <title>帐户管理</title>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
    <meta http-equiv="Pragma" content="No-cach" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    

    

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <table id="NavigationPath">
        <tr>
            <td>
                管理导航：<a href="Bank.aspx">帐户管理</a> &nbsp;| &nbsp;<a href="Bank.aspx?Action=Add"> 添加帐户</a>
            </td>
        </tr>
    </table>
    <asp:Panel ID="Panel1" runat="server" Visible="False">
        <table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tr class="HeaderStyle">
                <td>
                    添加帐户
                </td>
            </tr>
            <tr>
                <td class="border" height="23">
                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                        <tr>
                            <td class="RowTitle">
                                <b>帐户名称：</b>
                            </td>
                            <td>
                                <asp:TextBox ID="txtBankName" runat="server" Width="120px"></asp:TextBox><asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入" ControlToValidate="txtBankName"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                                开户行：
                            </td>
                            <td>
                                <asp:TextBox ID="txtBankFullName" runat="server" Width="250px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                                户名：
                            </td>
                            <td>
                                <asp:TextBox ID="txtHolderName" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                                    ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入" ControlToValidate="txtHolderName"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                                帐号：
                            </td>
                            <td>
                                <asp:TextBox ID="txtAccounts" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                                卡号：
                            </td>
                            <td>
                                <asp:TextBox ID="txtCardNum" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                                备注：
                            </td>
                            <td>
                                <asp:TextBox ID="txtIntro" runat="server" Width="360px" Height="85px" 
                                    TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                                设为默认：
                            </td>
                            <td>
                                <asp:CheckBox ID="cbkIsDefault" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="RowTitle">
                                <b>立即审核：</b>
                            </td>
                            <td>
                                <asp:CheckBox ID="cbkPass" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td valign="top" colspan="2">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <p align="center">
            <asp:Button ID="btnOK" runat="server" Text="添加" OnClick="btnOK_Click" Cssclass="btn btn-default">
            </asp:Button>&nbsp;&nbsp;
            <asp:Button ID="btnEdit" runat="server" Visible="False" Text="修改" OnClick="btnEdit_Click"
                Cssclass="btn btn-default"></asp:Button><asp:Button ID="btnBack" runat="server" Text="返回" OnClick="btnBack_Click"
                    Cssclass="btn btn-default"></asp:Button></p>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" Width="99%">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
            </ProgressTemplate>
        </asp:UpdateProgress>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
                    OnRowCommand="GV_List_RowCommand" OnRowDeleting="GV_List_RowDeleting" OnRowDataBound="GV_List_RowDataBound" GridLines="None" CssClass="table table-bordered table-condensed table-hover">
                    <Columns>
                        <asp:TemplateField HeaderText="选择">
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="40px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="BankName" HeaderText="帐户名称">
                            <ItemStyle Width="120px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="BankFullName" HeaderText="开户行" />
                        <asp:BoundField DataField="HolderName" HeaderText="账号" />
                        <asp:TemplateField HeaderText="帐号/卡号">
                            <ItemTemplate>
                                <%# ZhangHao(Eval("CardNum"), Eval("Accounts")) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:ButtonField DataTextField="Pass" HeaderText="审核" Text="审核" CommandName="Pass">
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                        </asp:ButtonField>
                        <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="Bank.aspx?Action=Edit&amp;ID={0}"
                            HeaderText="编辑" Text="编辑">
                            <ItemStyle HorizontalAlign="Center" Width="40px" />
                        </asp:HyperLinkField>
                        <asp:CommandField HeaderText="删除" ShowDeleteButton="True">
                            <ItemStyle HorizontalAlign="Center" Width="40px" />
                        </asp:CommandField>
                    </Columns>
                    <HeaderStyle CssClass="HeaderStyle" />
                </asp:GridView>
                <table style="width: 100%;">
                    <tr>
                        <td class="style1">
                            <input id="Checkbox1" onclick="javascript:SelectAll(this);" type="checkbox" />全选
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                            <asp:Button ID="DelSeletedID" runat="server" Text="删除选中" OnClick="DelSeletedID_Click"
                                Cssclass="btn btn-default"></asp:Button>
                        </td>
                    </tr>
                </table>
                
            </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
    </form>
</body>
</html>
